package com.group3.merchant.validator.impl;

import java.util.ArrayList;
import java.util.List;

import com.group3.merchant.validator.IValidator;

public class AddressValidator implements IValidator{
	private final String NOT_NULL_MSG="ADDRESS CANNOT BE EMPTY!";
	
	@Override
	public List<String> validate(String s) {
		
		List<String> errMsg = new ArrayList<>();
		if("".equals(s)){
			errMsg.add(NOT_NULL_MSG);
		}
		//length limited
		return errMsg;
	}

}
